﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace PassportsModel
{
    [DataContract]
    public class PassportResponse
    {
        [DataMember]
        public string RequestTaskId { get; set; }
        [DataMember]
        public eStatus Status { get; set; }
        
        public string ResponseMessage
        {
            // TODO how to get a real random?
            get { return GetStatusMethod(); }
        }

        private string GetStatusMethod()
        {
            string statusMessage = null;
            switch (Status)
            {
                case eStatus.Success:
                    statusMessage = "Thank You for Your Application!";
                    break;
                case eStatus.Failed:
                    statusMessage = "Sorry your request failed!";
                    break;
                case eStatus.Undefined:
                    statusMessage = "Sorry your request failed with an internal error!";
                    break;
            }
            return (statusMessage);
        }


    }
}